package me.firstapp.repository.shop;

import java.util.Date;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.shop.PointRechargeCard;
import me.firstapp.repository.base.EntityRepository;

public interface PointRechargeCardRepository extends EntityRepository<PointRechargeCard> {

	PointRechargeCard findByCardNo(String cardNo);

	Page<PointRechargeCard> findPointRechargeCardPage(Integer pageNo, Integer pageSize,
			Map<String, Object> searchParams, String sortParam, String sortType);

	Long findCardCountsByRechargeTime(Date startTime, Date endTime);
	
	Double findCardPointsByRechargeTime(Date startTime, Date endTime);
}
